package com.ruoyi.wechat.service.impl;

import java.util.List;

import com.ruoyi.common.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wechat.mapper.CDetailsMapper;
import com.ruoyi.wechat.domain.CDetails;
import com.ruoyi.wechat.service.ICDetailsService;

/**
 * 营地详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-04
 */
@Service
public class CDetailsServiceImpl implements ICDetailsService 
{
    @Autowired
    private CDetailsMapper cDetailsMapper;

    /**
     * 查询营地详情
     * 
     * @param detailsId 营地详情主键
     * @return 营地详情
     */
    @Override
    public CDetails selectCDetailsByDetailsId(String detailsId)
    {
        return cDetailsMapper.selectCDetailsByDetailsId(detailsId);
    }

    /**
     * 查询营地详情列表
     * 
     * @param cDetails 营地详情
     * @return 营地详情
     */
    @Override
    public List<CDetails> selectCDetailsList(CDetails cDetails)
    {
        return cDetailsMapper.selectCDetailsList(cDetails);
    }

    /**
     * 新增营地详情
     * 
     * @param cDetails 营地详情
     * @return 结果
     */
    @Override
    public int insertCDetails(CDetails cDetails)
    {
        return cDetailsMapper.insertCDetails(cDetails);
    }

    /**
     * 修改营地详情
     * 
     * @param cDetails 营地详情
     * @return 结果
     */
    @Override
    public int updateCDetails(CDetails cDetails)
    {
        return cDetailsMapper.updateCDetails(cDetails);
    }

    /**
     * 批量删除营地详情
     * 
     * @param detailsIds 需要删除的营地详情主键
     * @return 结果
     */
    @Override
    public int deleteCDetailsByDetailsIds(String[] detailsIds)
    {
        return cDetailsMapper.deleteCDetailsByDetailsIds(detailsIds);
    }

    /**
     * 删除营地详情信息
     * 
     * @param detailsId 营地详情主键
     * @return 结果
     */
    @Override
    public int deleteCDetailsByDetailsId(String detailsId)
    {
        return cDetailsMapper.deleteCDetailsByDetailsId(detailsId);
    }
}
